//处理文章删除
const db=require("../lib/db")
function deleteArticle(id){
    return new Promise((resolve,reject)=>{
        let sql="delete from article where id="+id
        db.querysql(sql).then(data=>{
            if(data.length==0){
                resolve(404)
            }else{
                console.log(true)
                resolve(true)
            }
        })
    })
}
module.exports=deleteArticle